package com.ruoyi.biz.letter.domain;

import java.util.Date;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.biz.letter.read.LevelCategoryConverter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 人民网留言板对象 biz_message_board
 *
 * @author Fei.Cong
 * @date 2024-07-18
 */
@TableName(value = "biz_message_board")
public class BizMessageBoard extends CategoryBase {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 服务单编号
     */
    @Excel(name = "服务单编号")
    private String letterNumber;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String letterTitle;

    private String messageId;

    /**
     * 领域类型
     */
    @Excel(name = "领域类型")
    private String type;

    /**
     * 提交时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "提交时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date submitTime;

    /**
     * 交办类型
     */
    @Excel(name = "交办类型")
    private String letterType;

    /**
     * 留言内容
     */
    @Excel(name = "留言内容")
    private String letterContent;

    /**
     * 回复内容
     */
    @Excel(name = "回复内容")
    private String replyContent;

    /**
     * 回复时间
     */
    @Excel(name = "回复时间")
    private String replyDate;

    /**
     * 来信人ip
     */
    @Excel(name = "来信人ip")
    private String letterIp;

    /**
     * 事件发生地
     */
    @ExcelProperty("事件发生地")
    private String ownerArea;

    /**
     * 事件发生地
     */
    @ExcelProperty("留言人属地")
    private String leaveArea;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setLetterNumber(String letterNumber) {
        this.letterNumber = letterNumber;
    }

    public String getLetterNumber() {
        return letterNumber;
    }

    public void setLetterTitle(String letterTitle) {
        this.letterTitle = letterTitle;
    }

    public String getLetterTitle() {
        return letterTitle;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setSubmitTime(Date submitTime) {
        this.submitTime = submitTime;
    }

    public Date getSubmitTime() {
        return submitTime;
    }

    public void setLetterType(String letterType) {
        this.letterType = letterType;
    }

    public String getLetterType() {
        return letterType;
    }

    public void setLetterContent(String letterContent) {
        this.letterContent = letterContent;
    }

    public String getLetterContent() {
        return letterContent;
    }

    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent;
    }

    public String getReplyContent() {
        return replyContent;
    }

    public void setReplyDate(String replyDate) {
        this.replyDate = replyDate;
    }

    public String getReplyDate() {
        return replyDate;
    }

    public void setLetterIp(String letterIp) {
        this.letterIp = letterIp;
    }

    public String getLetterIp() {
        return letterIp;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public String getOwnerArea() {
        return ownerArea;
    }

    public void setOwnerArea(String ownerArea) {
        this.ownerArea = ownerArea;
    }

    public String getLeaveArea() {
        return leaveArea;
    }

    public void setLeaveArea(String leaveArea) {
        this.leaveArea = leaveArea;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("letterNumber", getLetterNumber())
                .append("letterTitle", getLetterTitle())
                .append("type", getType())
                .append("submitTime", getSubmitTime())
                .append("letterType", getLetterType())
                .append("letterContent", getLetterContent())
                .append("replyContent", getReplyContent())
                .append("replyDate", getReplyDate())
                .append("acceptDept", getAcceptDept())
                .append("letterIp", getLetterIp())
                .append("deptId", getDeptId())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
